package com.decent.dao;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.decent.entity.Order;
import org.apache.ibatis.annotations.Param;

import java.util.List;


public interface OrderMapper extends BaseMapper<Order> {
    int deleteByPrimaryKey(Integer orderid);

    int insert(Order record);

    int insertSelective(Order record);

    Order selectByPrimaryKey(Integer orderid);

    int updateByPrimaryKeySelective(Order record);

    int updateByPrimaryKeyWithBLOBs(Order record);

    int updateByPrimaryKey(Order record);

    Long getOrderNoCount(String orderNo);

    Integer bindStore(@Param("storeId") Integer storeId,
                      @Param("orderNo") String orderNo);

    Order getOrderInfo(String orderNo);

    List<Order> getPageOrder(@Param("startTime") String startTime,
                             @Param("endTime") String endTime);
}